﻿using System;
using System.Windows.Browser;

namespace EnsureWeb.Share
{
    public class Url
    {
        public static string GetHtmlPageUrl(string path)
        {
            Uri uri = new Uri(HtmlPage.Document.DocumentUri, path);
            return uri.AbsoluteUri;
        }

        public static string GetHtmlPageHost()
        {
            return HtmlPage.Document.DocumentUri.Host;
        }
    }
}
